package com.ibeeking.found.cms.api.feign;

import com.ibeeking.found.cms.api.common.dto.CmsShopModuleInfoDTO;
import com.ibeeking.found.cms.api.feign.fallback.CmsSystemCFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author ibeeking
 */
@FeignClient(name = "base-system-c-server", path = "/c", contextId = "cmsSystemCClient", fallbackFactory = CmsSystemCFallbackFactory.class, decode404 = true)
public interface CmsSystemCClient {

    @PostMapping(value = "/shop/feign/v1/cmsShopModuleInfo/{shopId}")
    ResponseResult<CmsShopModuleInfoDTO> cmsShopModuleInfo(@PathVariable("shopId") Long shopId);

}
